package com.df.daatastructure.array;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;

public class ArrayTest {
    public static void main(String[] args) {
//        int[] testArr = {7,1,5,3,6,4};
        int[] testArr = {1,2,3,4,5};
        ArrayQuestion arrayQuestion = new ArrayQuestion();

//        //question1
//        int result = arrayQuestion.question1_maxProfit(testArr);
//        System.out.println(result);

        //question2
        arrayQuestion.question2_rotate(testArr,3);
        printArr(testArr);

    }

    public static void printArr(int[] arr){
        for (int i : arr) {
            System.out.print(i+" ");
        }
    }
}
